/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package be.djdb.shop;

import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
* @author Lieven Roegiers
* @copyright 2013
* @from MY_SHOP
*/
@NamedQueries({
    @NamedQuery(name="Refunds.findAll",query="SELECT r FROM Refunds r"),
    @NamedQuery(name="Refunds.findByOrderId",query="SELECT r FROM Refunds r WHERE r.Serialnr = :orderid"),
})
@Entity
public class Refunds{
    @Id
    private Integer id;
    @Temporal(TemporalType.TIMESTAMP)
    private Date date; 
    public Date getDate() {
        return date;
    }
    public void setDate(Date date) {
        this.date = date;
    }
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
}
